class ListNode:
    def __init__(self, x):
        self.val = x
        self.next = None


class Solution:
    def FindKthToTail(self, head, k):
        # write code here
        if head is None or k == 0:
            return None
        nodes = []
        cur_node = head
        while cur_node is not None:
            nodes.append(cur_node)
            cur_node = cur_node.next
        if len(nodes) < k:
            return None
        return nodes[len(nodes)-k]
